from ctypes import *
#这个是加载dll的
call_c = CDLL("F:\\python\\pj1\\build\\player.dll")
#res = call_c.audio_command("play  F:\\m.mp3")   
#调用远程播放
call_c.audio_command("play https://webfs.tx.kugou.com/202202272210/8cb928f392963cf7a0fe69587434f316/G246/M07/09/07/Ng4DAF-2DV-ANcACADEeCmUC_qU341.mp3")
#音量大小
call_c.audio_command("setaudio https://webfs.tx.kugou.com/202202272210/8cb928f392963cf7a0fe69587434f316/G246/M07/09/07/Ng4DAF-2DV-ANcACADEeCmUC_qU341.mp3 volume to 1000")
#跳到指定地方播放
#call_c.audio_command("seek movie to start")
#音量大小
#call_c.audio_command("setaudio movie volume to 数值");
#暂停播放
#call_c.audio_command("pause https://webfs.tx.kugou.com/202202272210/8cb928f392963cf7a0fe69587434f316/G246/M07/09/07/Ng4DAF-2DV-ANcACADEeCmUC_qU341.mp3", NULL, 0, NULL); 
#继续播放
#call_c.audio_command("resume 文件路径");
#停止播放
#call_c.audio_command("stop https://webfs.tx.kugou.com/202202272210/8cb928f392963cf7a0fe69587434f316/G246/M07/09/07/Ng4DAF-2DV-ANcACADEeCmUC_qU341.mp3")
input()